The One Direction singer welcomed a son, Bear, with Girls Aloud star and former X Factor judge Cheryl in 2017